package com.order.manager.controller.Qrcode;

import com.google.code.kaptcha.Producer;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

//标注了我这个类的身份是控制层控制器
@RestController
//我这个控制器Text的路径
@RequestMapping("/api/aaa")
//真正的控制器内容
public class Text {

//    我需要引入以下内容
    @Resource
     Producer producer;

    @RequestMapping
//    HttpServletRequest作用待定
    public void getCaptcha(HttpServletRequest request,HttpServletRequest response ,
                           @PathVariable("capText") String capText) throws IOException{

    }
}
